﻿#region Legal notice
/*
 * This file is part of EPPLib.
 * Copyright 2010, 2011 
 * Gianluca Esposito (info@gianlucaesposito.it)
 * ----------------------------------------------------------------------------
 * EPPLib is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 * 
 * EPPLib is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with Nome-Programma; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EPPLib.Messages;

namespace EPPLib.Managers
{
    public interface IServiceManager
    {
        string Request(string url, string data, string clientTransactionID);
        HelloResponseMessage Hello(string url, HelloMessage message);
        LoginResponseMessage Login(string url, LoginMessage message);
        LogoutResponseMessage Logout(string url, LogoutMessage message);

        CreateContactResponseMessage CreateContact(string url, string username, string password, CreateContactMessage message, CreateExtendedContactMessage extendedMessage, string clientTransactionID);
        DeleteContactResponseMessage DeleteContact(string url, string username, string password, DeleteContactMessage message, string clientTransactionID);
        CheckContactResponseMessage CheckContact(string url, string username, string password, CheckContactMessage message, string clientTransactionID);
        InfoContactResponseMessage InfoContact(string url, string username, string password, InfoContactMessage message, string clientTransactionID);
        UpdateContactResponseMessage UpdateContact(string url, string username, string password, UpdateContactMessage message, UpdateExtendedContactMessage extendedMessage, string clientTransactionID);

        CheckDomainResponseMessage CheckDomain(string url, string username, string password, CheckDomainMessage message, string clientTransactionID);
        InfoDomainResponseMessage InfoDomain(string url, string username, string password, InfoDomainMessage message, string clientTransactionID);
        DeleteDomainResponseMessage DeleteDomain(string url, string username, string password, DeleteDomainMessage message, string clientTransactionID);
        CreateDomainResponseMessage CreateDomain(string url, string username, string password, CreateDomainMessage message, string clientTransactionID);
        UpdateDomainResponseMessage UpdateDomain(string url, string username, string password, UpdateDomainMessage message, UpdateExtendedDomainMessage extendedMessage, string clientTransaciontID);
        TransferDomainResponseMessage TransferDomain(string url, string username, string password, MessageContainer.Operations operation, TransferDomainMessage message, TransferExtendedDomainMessage extendedMessage, string clientTransaciontID);
        PollRequestResponseMessage PollRequest(string url, string username, string password, PollRequestMessage message, string clientTransactionID);
    }
}
